import './utils/utils'
import './utils/http'
// app.js
App({
  globalData: {},
  onLaunch() {
    this.token = wx.getStorageSync('token')
    this.refreshToken = wx.getStorageSync('refreshToken')
  },
  setToken(key, value) {
    // 存到本地
    wx.setStorageSync(key, value)
    // 存到实例上
    this[key] = value
  },
})
